import request from '@/utils/request'

// 查询原料话术管理列表
export function listWording(query) {
  return request({
    url: '/safety/wording/list',
    method: 'get',
    params: query
  })
}

// 查询原料话术管理详细
export function getWording(id) {
  return request({
    url: '/safety/wording/' + id,
    method: 'get'
  })
}

// 新增原料话术管理
export function addWording(data) {
  return request({
    url: '/safety/wording',
    method: 'post',
    data: data
  })
}

// 修改原料话术管理
export function updateWording(data) {
  return request({
    url: '/safety/wording',
    method: 'put',
    data: data
  })
}

// 删除原料话术管理
export function delWording(id) {
  return request({
    url: '/safety/wording/' + id,
    method: 'delete'
  })
}
